message-default-charsetiso-8859-1 on
non-mule Emacsen; otherwise
nil, which means ask the user. (This variable is
used only on non-mule Emacsen.) See
Charset
Translation, for details on the mule-to-MIME translation
process.message-fill-columnmessage-signature-separatormail-header-separatormessage-directorymessage-directory.message-auto-save-directorynil, Message won't auto-save. The default is
~/Mail/drafts/.message-signature-setup-hookmessage-setup-hookmessage-header-setup-hookFor instance, if you're running Gnus and wish to insert a ‘Mail-Copies-To’ header in all your news articles and all messages you send to mailing lists, you could do something like the following:
(defun my-message-header-setup-hook ()
(let ((group (or gnus-newsgroup-name "")))
(when (or (message-fetch-field "newsgroups")
(gnus-group-find-parameter group 'to-address)
(gnus-group-find-parameter group 'to-list))
(insert "Mail-Copies-To: never\n"))))
(add-hook 'message-header-setup-hook
'my-message-header-setup-hook)
message-send-hookIf you want to add certain headers before sending, you can
use the message-add-header function in this
hook. For instance:
(add-hook 'message-send-hook 'my-message-add-content)
(defun my-message-add-content ()
(message-add-header "X-In-No-Sense: Nonsense")
(message-add-header "X-Whatever: no"))
This function won't add the header if the header is
already present.
message-send-mail-hookmessage-send-news-hookmessage-sent-hookmessage-cancel-hookmessage-mode-syntax-tablemessage-cite-articles-with-x-no-archivenil, don't strip quoted text from
articles that have ‘X-No-Archive’ set. Even if this
variable isn't set, you can undo the stripping by hitting the
undo keystroke.message-strip-special-text-propertiesmessage-send-method-alist
(type predicate function)
nil. function is called with
one parameter—the prefix.The default is:
((news message-news-p message-send-via-news)
(mail message-mail-p message-send-via-mail))
The message-news-p function returns
non-nil if the message looks like news, and the
message-send-via-news function sends the message
according to the message-send-news-function
variable (see News Variables). The
message-mail-p function returns
non-nil if the message looks like mail, and the
message-send-via-mail function sends the message
according to the message-send-mail-function
variable (see Mail Variables).
All the elements in this alist will be tried in order, so a message containing both a valid ‘Newsgroups’ header and a valid ‘To’ header, for example, will be sent as news, and then as mail.